<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>



    var name="照垣"
    var age=20
    let a="大家好,我是"+name+","+"今年"+age//拼接方式
    function test(){
        return "这是函数"
    }
    let b=`我是${name},今年${age+2},${test()}`//记得使用反引号
    console.log(a)
    console.log(b)

</script>
</body>
</html>